home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / BYACC__ / TOKENS.H < prev    next >
Text File  |  1989-11-19  |  617b  |  41 lines

  1. #ifndef    TOKENS
  2. #define    TOKENS
  3.  
  4. #include "text.h"
  5. #include "symtab.h"
  6.  
  7. #define    END_OF_FILE     0
  8. #define    IDENTIFIER     1
  9. #define TYPE_IDENTIFIER     2
  10. #define    CHARACTER     3
  11. #define    STRING         4
  12. #define    NUMBER         5
  13. #define    TEXT         6
  14. #define    ACTION         7
  15. #define    COMMA         8
  16. #define    COLON         9
  17. #define    SEMICOLON    10
  18. #define    BAR        11
  19. #define    MARK        12
  20. #define    LEFT        13
  21. #define    RIGHT        14
  22. #define    NONASSOC    15
  23. #define    TOKEN        16
  24. #define    PREC        17
  25. #define    TYPE        18
  26. #define    START        19
  27. #define    UNION_TEXT    20
  28.  
  29. typedef
  30.   struct yystype
  31.     {
  32.       int i;
  33.       struct bucket *bp;
  34.       struct text *tp;
  35.     }
  36.   yystype;
  37.  
  38. #define    YYSTYPE yystype
  39.  
  40. #endif
  41.